package com.vlyman.shiro.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;

/**
 * 类描述：
 *  实体类
 *
 * @author chenjs
 * @date 2018-12-19 16:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@TableName("sys_privilege")
public class SysPrivilege implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 授权id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 授权目标(1：用户，2：角色)
     */
    private Integer master;

    /**
     * 授权值
     */
    private Integer masterValue;

    /**
     * 权限目标(1：菜单，2：按钮)
     */
    private Integer access;

    /**
     * 权限值
     */
    private Integer accessValue;

    /**
     * 状态(1：正常，2：禁用)
     */
    private Integer operation;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private Integer createUserId;

    /**
     * 修改时间
     */
    private LocalDateTime modifyTime;

    /**
     * 修改人
     */
    private Integer modifyUserId;
    public static final String ID = "id";
    public static final String MASTER = "master";
    public static final String MASTERVALUE = "masterValue";
    public static final String ACCESS = "access";
    public static final String ACCESSVALUE = "accessValue";
    public static final String OPERATION = "operation";
    public static final String CREATETIME = "createTime";
    public static final String CREATEUSERID = "createUserId";
    public static final String MODIFYTIME = "modifyTime";
    public static final String MODIFYUSERID = "modifyUserId";

}
